Completed
Push — master ( 69943d...9f3a94 )
by Esaú
01:40
created

StringIndexOutOfBoundsException.spec.js ➔ ???   B

Complexity

Conditions 1
Paths 512

Size

Total Lines 199

Duplication

Lines 199
Ratio 100 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
c 1
b 0
f 0
nc 512
dl 199
loc 199
rs 7.0742
nop 0

How to fix   Long Method   

Long Method

Small methods make your code easier to understand, in particular if combined with a good name. Besides, if your method is small, finding a good name is usually much easier.

For example, if you find yourself adding comments to a method's body, this is usually a good sign to extract the commented part to a new method, and use the comment as a starting point when coming up with a good name for this new method.

Commonly applied refactorings include:

1
// spec/StringIndexOutOfBoundsException.spec.js
2
"use strict";
3
4
// :: DEPENDENCIES
5
6
// load native dependencies
7
const path = require("path");
8
9
// load local dependencies
10
const hierarchy = require(path.join(__dirname, "helpers", "hierarchy-helper.js"));
11
12
// :: TESTING
13
14
hierarchy([
15
    "Throwable",
16
    "Exception",
17
    "RuntimeException",
18
    "IndexOutOfBoundsException",
19
    "StringIndexOutOfBoundsException"
20
]);